from gameset.phoenicia.base import *

from .plantation import Fruit, FruitBearer


class Apples(Fruit):
    singular  =_ ('Apple')
    plural    =_ ('Apples')
    price     =_ (100)
    happiness =_ (0.5)
    consumed  =_ (1)


class Grapes(Fruit):
    singular  =_ ('Grape')
    plural    =_ ('Grapes')
    price     =_ (150)
    happiness =_ (1.0)
    consumed  =_ (5)


class Olives(Fruit):
    singular  =_ ('Olive')
    plural    =_ ('Olives')
    price     =_ (120)
    happiness =_ (0.5)
    consumed  =_ (5)


class AppleTree(FruitBearer):
    name    =_ ('Apple Tree')
    cost    =_ (10)
    color   =_ (Red)
    good    =_ (Apples(10))
    
    resistance    =_ (0.8) 
    growth_days   =_ (120)
    decay_days    =_ ( 50)
    tend_days     =_ ( 40)
    tend_modifier =_ (  2)


class Grapevine(FruitBearer):
    name    =_ ('Grapevine')
    cost    =_ (10)
    color   =_ (Purple)
    good    =_ (Grapes(25))
    
    resistance    =_ (0.3)
    growth_days   =_ (180)
    decay_days    =_ ( 10)
    tend_days     =_ ( 10)
    tend_modifier =_ (  5)


class OliveTree(FruitBearer):
    name    =_ ('Olive Tree')
    cost    =_ (10)
    color   =_ (Color.from_rgb(0.5, 0.9, 0.1))
    good    =_ (Olives(20))
    
    resistance    =_ (0.7)
    growth_days   =_ (300)
    decay_days    =_ ( 50)
    tend_days     =_ ( 30)
    tend_modifier =_ (  3)
